#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
目录初始化脚本
确保所有必要的目录存在
"""

import os

def create_directories():
    """创建必要的目录结构"""
    directories = [
        'config',
        'logs', 
        'data',
        'docs',
        'scripts',
        'tests'
    ]
    
    for directory in directories:
        if not os.path.exists(directory):
            os.makedirs(directory)
            print(f"创建目录: {directory}")
        else:
            print(f"目录已存在: {directory}")

if __name__ == "__main__":
    print("初始化目录结构...")
    create_directories()
    print("目录初始化完成！")